<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pt" lang="pt">
<head>
    <title>Gerre!</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
   
    <link rel="shortcut icon" href="<?php echo base_url()?>public/imagens/logos/favi.ico" type="image/x-icon" />
    <link rel="stylesheet" href="<?php echo site_url()?>public/css/geral.css">
    <link rel="stylesheet" href="<?php echo site_url()?>public/css/tabs.css" type="text/css" />
    <link rel="stylesheet" href="<?php echo site_url()?>public/css/cabecalho.css" type="text/css" />
    <link rel="stylesheet" href="<?php echo site_url()?>public/css/projetos.css" type="text/css" />
    <link rel="stylesheet" href="<?php echo site_url()?>public/css/menu.css" type="text/css" />
    <link rel="stylesheet" href="<?php echo site_url()?>public/css/tabela.css" type="text/css" />
    <link rel="stylesheet" href="<?php echo site_url()?>public/css/botoes.css" type="text/css" />
    <link rel="stylesheet" href="<?php echo site_url()?>public/js/jquery-ui-1.10.0.custom/css/ui-lightness/jquery-ui-1.10.0.custom.css" type="text/css" />
    <script src="http://code.jquery.com/jquery-latest.js"></script>
    <script type="text/javascript" src="<?php echo base_url()?>public/js/jquery.validate.js"> </script>
    <script type="text/javascript" src="<?php echo base_url()?>public/js/jquery.maskedinput-1.3.1.min.js"> </script>
    <script type="text/javascript" src="<?php echo base_url()?>public/js/tinymce/tinymce.min.js"> </script>
    <script type="text/javascript" src="<?php echo base_url()?>public/js/jquery-ui-1.10.0.custom/js/jquery-ui-1.10.0.custom.min.js"> </script>
    <script>
            $(document).ready(function(){
                //$('form').validate();
                $(document).keyup(function(cod){
                    if (cod.which == 27)
                        $("#areaTroca").fadeOut();
                });
                
                $('#edSenha').click(function(){
                    var divEditar = $('#areaTroca');
                    $.ajax({
                        url: '<?php echo base_url()?>membro/editarSenha',
                        type: 'POST',
                        success: function(data){
                            divEditar.html(data);
                            divEditar.fadeIn(600);
                        }
                    });
                });
                
                tinymce.init({
                    menubar: false,
                    statusbar: false,
                    width: 'auto',
                    selector: "textarea.tinymce",
                    toolbar: "bold italic underline | alignleft aligncenter alignright alignjustify | bullist numlist |"
                });
                
            });
        </script>
</head>
    
<body>
    <div id="fixed_header">
        <div id="header">
            <div id="logo">
                <img src="<?php echo base_url()?>public/imagens/logo.png" />
            </div>
            <div id="user">
                <ul id="opcUser">
                    <li>
                        <?php echo $this->session->userdata('nome')?>
                        <img src="<?php echo base_url()?>public/imagens/icones/setinha.png"/>
                        <ul>
                            <a id="edSenha"><li>Trocar minha senha</li></a>
                            <a href="<?php echo base_url()?>membro/logout"><li>Sair</li></a>
                        </ul>
                    </li>
                </ul>
            </div>
	</div>
    </div>
    
    <div id="fixed_top_menu">
	<div id="top_menu">
            <nav id="menu">
                <?php $cargo = $this->session->userdata('cargo_id')?>
                <ul>
                    <?php if($cargo == '6') { ?>
                        <li><?php echo anchor('membro/homeCoordenador', '<img src="'.base_url().'public/imagens/menu/projects.png" /> Projetos','homeCoordenador' == $this->uri->segment(2) ? 'class="selected"' : '');?></li>
                    <?php }?>
                    <li><?php echo anchor('relatorio/listarAtas', '<img src="'.base_url().'public/imagens/menu/meetings.png" /> Reuniões', 'listarAtas' == $this->uri->segment(2) ? 'class="selected"' : '')?></li>
                    <li><?php echo anchor('membro/listarMembros', '<img src="'.base_url().'public/imagens/menu/members.png" /> Membros', 'membro' == $this->uri->segment(1) && 'homeCoordenador' != $this->uri->segment(2) ? 'class="selected"' : '')?></li>
                    <?php if($cargo == '6') { ?>
                        <li><?php echo anchor('apoio/listarConfiguracoes', '<img src="'.base_url().'public/imagens/menu/settings.png" /> Configurações','apoio' == $this->uri->segment(1) ? 'class="selected"' : '');?></li>
                    <?php }?>
		</ul>
            </nav>
	</div>
    </div>
    
    <div id="fixed_side_menu">
        <div id="side_menu"></div>
    </div>
    <div id="content_wrapper">
        <div id="areaTroca"></div>
        <div id="content">
            
            